package com.dd.ent.car.ui.richeditor;

import android.graphics.Color;
import android.os.Bundle;

import com.dd.ent.car.R;
import com.dd.ent.car.ui.BaseActivity;
import com.pp.ent.view.annotation.ContentView;
import com.pp.ent.view.annotation.ViewInject;

import jp.wasabeef.richeditor.RichEditor;

/**
 * Created by spring on 2017/3/10.
 */
@ContentView(R.layout.activity_text)
public class RichEditorActivity extends com.pp.ent.base.BaseActivity {
    @ViewInject(R.id.mre_editor)
    private RichEditor richEditor;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        richEditor.setEditorHeight(200);//起始编辑设置高度
        richEditor.setEditorFontSize(22);//设置字体大小
        richEditor.setEditorFontColor(Color.RED);//设置字体颜色
        richEditor.setBold();//设置粗体
        richEditor.setItalic();//设置斜体
    }
}
